package cn.ranko.site.service;

import cn.ranko.site.mapper.SysUsersRolesMapper;
import cn.ranko.site.model.SysUsersRoles;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by ZJ08 on 2016/7/28.
 */
@Service
public class SysUsersRolesService {

    @Autowired
    SysUsersRolesMapper sysUsersRolesMapper;

    public SysUsersRoles getByUserId(Long userId) {
        return sysUsersRolesMapper.selectByPrimaryKey(userId);
    }
}
